package com.pengtu.dao.app;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.pengtu.dao.hibernate.HibernateDao;
import com.pengtu.entity.app.Plan;

@Repository
public class PlanDao extends HibernateDao<Plan, Serializable>{
	
	/**获取在首页显示的计划列表*/
	public List<Plan> getTopPlan(String username) {
		
		String hql = "from Plan where rownum <= 6 and delFlag = 0 and publisher = '" + username + "' order by createDate desc ";
		
		return this.find(hql);	
		}
}
